<?php

require_once 'classes/ui/Controller.class.php';

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BaseController
 *
 * @author jonj
 */
class BaseController extends Controller {
    
    private $_oHeader;
    private $_oFooter;
    
    
    public function __construct(Controller $oHeader, Controller $oFooter)
    {
        $this->_oHeader = $oHeader;
        $this->_oFooter = $oFooter;
    }
    
    public function load()
    {
        parent::load();
        $this->_oHeader->load();
        $this->_oFooter->load();
    }
    
    public function show()
    {
        $sResult = $this->_oHeader->show();
        $sResult .= parent::show();
        $sResult .= $this->_oFooter->show();
        
        return $sResult;
    }
}

?>
